// 封装首页相关接口
import request from '@/utils/request'

// 统计房源总数
export const propertyTotalService = () => {
  return request({
    url: '/api/property/count',
    method: 'GET'
  })
}

// 统计热门房源总数
export const hotPropertyTotalService = () => {
  return request({
    url: '/api/hot/count',
    method: 'GET'
  })
}

// 统计看房预约总数
export const orderTotalService = () => {
  return request({
    url: '/api/order/count',
    method: 'GET'
  })
}

// 统计用户评论总数
export const evaluateTotalService = () => {
  return request({
    url: '/api/evaluate/count',
    method: 'GET'
  })
}

// 柱状图
export const BarChartService = () => {
  return request({
    url: '/api/chart/bar',
    method: 'GET'
  })
}

// 饼图
export const PieChartService = () => {
  return request({
    url: '/api/chart/pie',
    method: 'GET'
  })
}

// 折线图
export const LineChartService = () => {
  return request({
    url: '/api/chart/line',
    method: 'GET'
  })
}
